/*
 Navicat Premium Data Transfer

 Source Server         : demo
 Source Server Type    : MySQL
 Source Server Version : 80031
 Source Host           : localhost:3306
 Source Schema         : 2108A-week301

 Target Server Type    : MySQL
 Target Server Version : 80031
 File Encoding         : 65001

 Date: 30/10/2023 16:36:33
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for job_info
-- ----------------------------
DROP TABLE IF EXISTS `job_info`;
CREATE TABLE `job_info` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `avatar` varchar(255)  DEFAULT NULL,
  `num` varchar(255)  DEFAULT NULL,
  `dept_name` varchar(255)  DEFAULT NULL,
  `post_id` int DEFAULT NULL,
  `school_id` int DEFAULT NULL,
  `start_time` datetime DEFAULT NULL,
  `end_time` datetime DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `del` int DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `idx_post_school` (`post_id`,`school_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1002 DEFAULT CHARSET=utf8mb4 ;

-- ----------------------------
-- Records of job_info
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for job_post
-- ----------------------------
DROP TABLE IF EXISTS `job_post`;
CREATE TABLE `job_post` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- ----------------------------
-- Records of job_post
-- ----------------------------
BEGIN;
INSERT INTO `job_post` (`id`, `name`) VALUES (1, '职位1');
INSERT INTO `job_post` (`id`, `name`) VALUES (2, '职位2');
COMMIT;

-- ----------------------------
-- Table structure for job_school
-- ----------------------------
DROP TABLE IF EXISTS `job_school`;
CREATE TABLE `job_school` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(255)  DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- ----------------------------
-- Records of job_school
-- ----------------------------
BEGIN;
INSERT INTO `job_school` (`id`, `name`) VALUES (1, '北大');
INSERT INTO `job_school` (`id`, `name`) VALUES (2, '清华');
INSERT INTO `job_school` (`id`, `name`) VALUES (3, '八维');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
